import React from 'react';
// ant
import { Form, Row, Col, Select } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;

class RefundmentForm extends React.Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        const { getFieldDecorator } = this.props.form;
        const formItemLayout = {
            labelCol: {
                sm: { span: 5 },
            },
            wrapperCol: {
                sm: { span: 18 },
            },
        };

        return (
            <div>
                <FormItem label="卖家限制" {...formItemLayout}>
                    <Row gutter={8}>
                        <Col span={8}>
                            {
                                getFieldDecorator('SellerRestriction', {
                                    rules: [
                                        {
                                            required: true,
                                            message: '必填'
                                        }
                                    ]
                                })(
                                    <Select className="w100" placeholder="请选择">
                                        <Option value="1">卖家限制</Option>
                                    </Select>
                                )
                            }
                        </Col>
                    </Row>
                </FormItem>

                <FormItem label="退货政策模板" {...formItemLayout}>
                    <Row gutter={8}>
                        <Col span={8}>
                            {
                                getFieldDecorator('ReturnPolicyTemplate', {
                                    rules: [
                                        {
                                            required: true,
                                            message: '必填'
                                        }
                                    ]
                                })(
                                    <Select className="w100" placeholder="请选择">
                                        <Option value="1">退货政策模板</Option>
                                    </Select>
                                )
                            }
                        </Col>
                    </Row>
                </FormItem>
            </div>
        )
    }
}

export default Form.create()(RefundmentForm)